package cn.springcloud.fix.oauth2.autoconfigure.client;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import cn.springcloud.fix.oauth2.autoconfigure.resource.ResourceServerTokenServicesConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableOAuth2Client
@EnableConfigurationProperties(OAuth2SsoProperties.class)

@Import({
        OAuth2SsoDefaultConfiguration.class,
        OAuth2SsoCustomConfiguration.class,
        ResourceServerTokenServicesConfiguration.class
})

@Deprecated
public @interface EnableOAuth2Sso {

}
